package com.pandora.common.business;

import com.pandora.common.exception.EduException;
import com.pandora.framework.http.APIOperatelogVO;
import com.pandora.framework.vo.BaseMultiBean;

public class UserOperatelogAddBusiness extends BaseMultiBean{
	
	public void doBusiness(APIOperatelogVO vo) throws EduException{
		
		getDB();
		
		sql = " INSERT INTO t_log_operate "
				+ " (TYPE, REQUESTTIME, SERVICETYPE, IP, REQUESTURL, OPERATELOGNO, CONTENT, CODE, "
				+ " COMPLETETIME, ACCESSID, ACCESSKEY, SIGN, LOGINLOGNO, USERTYPE, RECORDNO, ACTIONCODE, STATUS, REMARK) "
				+ " VALUE ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )";
		fieldList.clear();
		fieldList.add(vo.getType());
		fieldList.add(vo.getRequestTime());
		fieldList.add(vo.getServiceType());
		fieldList.add(vo.getIp());
		fieldList.add(vo.getRequestUrl());
		fieldList.add(vo.getOperateLogNo());
		fieldList.add(vo.getContent());
		fieldList.add(vo.getCode());
		fieldList.add(vo.getCompleteTime());
		fieldList.add(vo.getAccessid());
		fieldList.add(vo.getAccesskey());
		fieldList.add(vo.getSign());
		fieldList.add(vo.getLoginLogNo());
		fieldList.add(vo.getUserType());
		fieldList.add(vo.getRecordNo());
		fieldList.add(vo.getActionCode());
		fieldList.add(vo.getStatus());
		fieldList.add(vo.getRemark());
		
		dbSession.executeQuery(sql, fieldList);
	}
}
